Vcenter VM FilterSpec
The Vcenter VM FilterSpec schema contains properties used to filter the results when listing virtual machines (see GET /vcenter/vm). If multiple properties are specified, only virtual machines matching all of the properties match the filter.
{
"vms": [
"string"
],
"names": [
"string"
],
"folders": [
"string"
],
"datacenters": [
"string"
],
"hosts": [
"string"
],
"clusters": [
"string"
],
"resource_pools": [
"string"
],
"power_states": [
"string"
]
}
Identifiers of virtual machines that can match the filter.
If missing or null
or empty, virtual machines with any identifier match the filter.
When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: VirtualMachine
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: VirtualMachine
.
Names that virtual machines must have to match the filter (see Vcenter VM Info.name).
If missing or null
or empty, virtual machines with any name match the filter.
Folders that must contain the virtual machine for the virtual machine to match the filter.
If missing or null
or empty, virtual machines in any folder match the filter.
When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: Folder
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: Folder
.
Datacenters that must contain the virtual machine for the virtual machine to match the filter.
If missing or null
or empty, virtual machines in any datacenter match the filter.
When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: Datacenter
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: Datacenter
.
Hosts that must contain the virtual machine for the virtual machine to match the filter.
If missing or null
or empty, virtual machines on any host match the filter.
When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: HostSystem
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: HostSystem
.
Clusters that must contain the virtual machine for the virtual machine to match the filter.
If missing or null
or empty, virtual machines in any cluster match the filter.
When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: ClusterComputeResource
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: ClusterComputeResource
.
Resource pools that must contain the virtual machine for the virtual machine to match the filter.
If missing or null
or empty, virtual machines in any resource pool match the filter.
When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: ResourcePool
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: ResourcePool
.
Power states that a virtual machine must be in to match the filter (see Vcenter Vm Power Info.state.
For more information see: Vcenter Vm Power State.
If missing or null
or empty, virtual machines in any power state match the filter.